package com.kly.user.firebase.bean;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.json.JSONObject;

import java.util.List;

/**
 * 向 Google Analytics（分析）发送 Measurement Protocol 事件 请求数据
 */
@Getter
@Setter
@Builder
public class FirebaseEventTrackingReq {
    private String client_id;
    private String user_id;

    private List<FirebaseEvent> events;

    @Getter
    @Setter
    @Builder
    public static class FirebaseEvent {
        private String name;
        private JSONObject params;
    }

    @Getter
    @Setter
    @Builder
    public static class FirebaseEventParams {
        private String campaign_id;

        private String campaign;

        private String source;

        private String medium;

        private String term;

        private String content;

        private String session_id;

        private String engagement_time_msec;
    }
}
